from flask import Blueprint,jsonify
from app.models.auth import UserModel
bp = Blueprint("user",__name__,url_prefix="/user")

@bp.route("/getById/<id>")
def getUserById(id):

    user = UserModel.query.get(id)


    return "{}" .format(user.serialize_only)